<?php
defined('BASEPATH') or exit('No direct script access allowed');
?>
    <!doctype html>
    <html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <title>思品文档-slidepin.com</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
		<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
		<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
		<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
		<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
		<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
		<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
		<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
		<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
		<link rel="icon" type="image/png" sizes="192x192"  href="/android-icon-192x192.png">
		<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
		<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
		<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
		<link rel="manifest" href="/manifest.json">
		<meta name="msapplication-TileColor" content="#ffffff">
		<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
		<meta name="theme-color" content="#ffffff">
        <!--[if lt IE 9]>
    		<script src="/static/js/lib/html5shiv.min.js"></script>
    		<script src="/static/js/lib/respond.min.js"></script>
        <![endif]-->
        <link rel="stylesheet" href="/static/css/base.css">
        <link rel="stylesheet" href="/static/css/common.css">
        <link rel="stylesheet" href="//at.alicdn.com/t/font_768387_zlin0k0q81i.css">
        <link rel="stylesheet" href="/static/css/home.css">
    </head>

    <body>
        <?php $this->load->view('common/header');?>
        <div id="layout-container" class="layout-container">
            <div class="layout-list-box">
                <div class="panel-heading">
                    <h3 class="heading">最近更新<small>更新内容，更多精彩！</small><a class="more" href="/latest" target="_blank">更多</a></h3>
                </div>
                <div class="slide-list-box">
                    <ul class="slide-list clearfix">
						<?php foreach($latestData as $item):?>
                        <li class="item">
                            <div class="item-box">
                                <div class="item-panel">
                                    <div class="item-thumbnail">
                                        <a href="/slide/<?=$item['slide_id']?>" target="_blank" title="<?=$item['title']?>">
                                            <img src="<?=$item['thumbnail']?>" alt="<?=$item['title']?>">
                                        </a>
                                    </div>
                                    <div class="item-content">
                                        <h2 class="item-title"><a href="/slide/<?=$item['slide_id']?>" target="_blank"><?=$item['title']?></a></h2>
                                        <div class="item-info">
                                            <p class="author"><a href="/user/<?=$item['creator_id']?>" target="_blank"><?=$item['username']?></a></p>
                                            <div class="item-data clearfix">
                                                <span class="date fl"><?=date('Y-m-d',strtotime($item['publish_date']))?></span>
                                                <span class="view-count fr"><?=$item['view_count']?>浏览</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </li>
						<?php endforeach;?>
                    </ul>
                </div>
            </div>
            <div class="layout-list-box">
                <div class="panel-heading">
                    <h3 class="heading">人气热门<small>热气热门推荐榜</small><a class="more" href="/hot" target="_blank">更多</a></h3>
                </div>
                <div class="slide-list-box">
                    <ul class="slide-list clearfix">
                        <?php foreach($hotData as $item):?>
                        <li class="item">
                            <div class="item-box">
                                <div class="item-panel">
                                    <div class="item-thumbnail">
                                        <a href="/slide/<?=$item['slide_id']?>" target="_blank" title="<?=$item['title']?>">
                                            <img src="<?=$item['thumbnail']?>" alt="<?=$item['title']?>">
                                        </a>
                                    </div>
                                    <div class="item-content">
                                        <h2 class="item-title"><a href="/slide/<?=$item['slide_id']?>" target="_blank"><?=$item['title']?></a></h2>
                                        <div class="item-info">
                                            <p class="author"><a href="/user/<?=$item['creator_id']?>" target="_blank"><?=$item['username']?></a></p>
                                            <div class="item-data clearfix">
                                                <span class="date fl"><?=date('Y-m-d',strtotime($item['publish_date']))?></span>
                                                <span class="view-count fr"><?=$item['view_count']?>浏览</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </li>
						<?php endforeach;?>
                    </ul>
                </div>
            </div>
            <div class="layout-list-box">
                <div class="panel-heading">
                    <h3 class="heading">猜你喜欢<small>根据你的兴趣，为你量身定制！</small><a class="more" href="/feedback" target="_blank">更多</a></h3>
                </div>
                <div class="slide-list-box">
                    <ul class="slide-list clearfix">
                        <?php foreach($likeData as $item):?>
                        <li class="item">
                            <div class="item-box">
                                <div class="item-panel">
                                    <div class="item-thumbnail">
                                        <a href="/slide/<?=$item['slide_id']?>" target="_blank" title="<?=$item['title']?>">
                                            <img src="<?=$item['thumbnail']?>" alt="<?=$item['title']?>">
                                        </a>
                                    </div>
                                    <div class="item-content">
                                        <h2 class="item-title"><a href="/slide/<?=$item['slide_id']?>" target="_blank"><?=$item['title']?></a></h2>
                                        <div class="item-info">
                                            <p class="author"><a href="/user/<?=$item['creator_id']?>" target="_blank"><?=$item['username']?></a></p>
                                            <div class="item-data clearfix">
                                                <span class="date fl"><?=date('Y-m-d',strtotime($item['publish_date']))?></span>
                                                <span class="view-count fr"><?=$item['view_count']?>浏览</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </li>
						<?php endforeach;?>
                    </ul>
                </div>
            </div>
        </div>
        <?php $this->load->view('common/footer');?>
    </body>

    </html>
